<?php $form=$this->beginWidget('bootstrap.widgets.TbActiveForm',array(
	'id'=>'user-form',
	'enableAjaxValidation'=>true,
)); ?>

<?php echo $form->errorSummary($model); ?>


	<?php echo $form->textFieldRow($model,'username',array('class'=>'span5','maxlength'=>100,'disabled'=>'disabled')); ?>
        <?php $model->password = null;?>
        <?php echo $form->passwordFieldRow($model,'password',array('class'=>'span5','maxlength'=>100)); ?>

	<?php echo $form->passwordFieldRow($model,'password_repeat',array('class'=>'span5','maxlength'=>100)); ?>


<p class="help-block"><?php echo Yii::t('view', 'Biarkan kosong jika Anda tidak ingin mengubah password.');?></p>

<div class="form-actions">
	<?php $this->widget('bootstrap.widgets.TbButton', array(
			'buttonType'=>'submit',
			'type'=>'primary',
			'label'=>$model->isNewRecord ? 'Create' : 'Save',
		)); ?>
</div>

<?php $this->endWidget(); ?>
